﻿import request from '/@/utils/request';
enum Api {
  AddBoardPlace = '/api/boardPlace/add',
  DeleteBoardPlace = '/api/boardPlace/delete',
  UpdateBoardPlace = '/api/boardPlace/update',
  PageBoardPlace = '/api/boardPlace/page',
  DetailBoardPlace = '/api/boardPlace/detail',
}

// 增加车间管理
export const addBoardPlace = (params?: any) =>
	request({
		url: Api.AddBoardPlace,
		method: 'post',
		data: params,
	});

// 删除车间管理
export const deleteBoardPlace = (params?: any) => 
	request({
			url: Api.DeleteBoardPlace,
			method: 'post',
			data: params,
		});

// 编辑车间管理
export const updateBoardPlace = (params?: any) => 
	request({
			url: Api.UpdateBoardPlace,
			method: 'post',
			data: params,
		});

// 分页查询车间管理
export const pageBoardPlace = (params?: any) => 
	request({
			url: Api.PageBoardPlace,
			method: 'post',
			data: params,
		});

// 详情车间管理
export const detailBoardPlace = (id: any) => 
	request({
			url: Api.DetailBoardPlace,
			method: 'get',
			data: { id },
		});


